﻿using GuiSearcher.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace GuiSearcher.Views {
    /// <summary>
    /// Interaction logic for DoubleComboTextBox.xaml
    /// </summary>
    public partial class DoubleComboTextBox : UserControl {
        public DoubleComboTextBox() {
            InitializeComponent();
        }

        /// <summary>
        /// The <see cref="SearchModes" /> dependency property's name.
        /// </summary>
        public const string SearchModesPropertyName = "SearchModes";

        /// <summary>
        /// Gets or sets the value of the <see cref="SearchModes" />
        /// property. This is a dependency property.
        /// </summary>
        public Dictionary<SearchModeEnum,string> SearchModes {
            get {
                return (Dictionary<SearchModeEnum,string>)GetValue(SearchModesProperty);
            }
            set {
                SetValue(SearchModesProperty, value);
            }
        }

        /// <summary>
        /// Identifies the <see cref="SearchModes" /> dependency property.
        /// </summary>
        public static readonly DependencyProperty SearchModesProperty = DependencyProperty.Register(
            SearchModesPropertyName,
            typeof(Dictionary<SearchModeEnum,string>),
            typeof(DoubleComboTextBox),
            new UIPropertyMetadata(null));

        /// <summary>
        /// The <see cref="SelectedSearchModeOne" /> dependency property's name.
        /// </summary>
        public const string SelectedSearchModeOnePropertyName = "SelectedSearchModeOne";

        /// <summary>
        /// Gets or sets the value of the <see cref="SelectedSearchModeOne" />
        /// property. This is a dependency property.
        /// </summary>
        public SearchModeEnum SelectedSearchModeOne {
            get {
                return (SearchModeEnum)GetValue(SelectedSearchModeOneProperty);
            }
            set {
                SetValue(SelectedSearchModeOneProperty, value);
            }
        }

        /// <summary>
        /// Identifies the <see cref="SelectedSearchModeOne" /> dependency property.
        /// </summary>
        public static readonly DependencyProperty SelectedSearchModeOneProperty = DependencyProperty.Register(
            SelectedSearchModeOnePropertyName,
            typeof(SearchModeEnum),
            typeof(DoubleComboTextBox),
            new UIPropertyMetadata(null));

        /// <summary>
        /// The <see cref="SelectedSearchModeTwo" /> dependency property's name.
        /// </summary>
        public const string SelectedSearchModeTwoPropertyName = "SelectedSearchModeTwo";

        /// <summary>
        /// Gets or sets the value of the <see cref="SelectedSearchModeTwo" />
        /// property. This is a dependency property.
        /// </summary>
        public SearchModeEnum SelectedSearchModeTwo {
            get {
                return (SearchModeEnum)GetValue(SelectedSearchModeTwoProperty);
            }
            set {
                SetValue(SelectedSearchModeTwoProperty, value);
            }
        }

        /// <summary>
        /// Identifies the <see cref="SelectedSearchModeTwo" /> dependency property.
        /// </summary>
        public static readonly DependencyProperty SelectedSearchModeTwoProperty = DependencyProperty.Register(
            SelectedSearchModeTwoPropertyName,
            typeof(SearchModeEnum),
            typeof(DoubleComboTextBox),
            new UIPropertyMetadata(null));


        /// <summary>
        /// The <see cref="TextOne" /> dependency property's name.
        /// </summary>
        public const string TextOnePropertyName = "TextOne";

        /// <summary>
        /// Gets or sets the value of the <see cref="TextOne" />
        /// property. This is a dependency property.
        /// </summary>
        public string TextOne {
            get {
                return (string)GetValue(TextOneProperty);
            }
            set {
                SetValue(TextOneProperty, value);
            }
        }

        /// <summary>
        /// Identifies the <see cref="TextOne" /> dependency property.
        /// </summary>
        public static readonly DependencyProperty TextOneProperty = DependencyProperty.Register(
            TextOnePropertyName,
            typeof(string),
            typeof(DoubleComboTextBox),
            new UIPropertyMetadata(string.Empty));


        /// <summary>
        /// The <see cref="TextTwo" /> dependency property's name.
        /// </summary>
        public const string TextTwoPropertyName = "TextTwo";

        /// <summary>
        /// Gets or sets the value of the <see cref="TextTwo" />
        /// property. This is a dependency property.
        /// </summary>
        public string TextTwo {
            get {
                return (string)GetValue(TextTwoProperty);
            }
            set {
                SetValue(TextTwoProperty, value);
            }
        }

        /// <summary>
        /// Identifies the <see cref="TextTwo" /> dependency property.
        /// </summary>
        public static readonly DependencyProperty TextTwoProperty = DependencyProperty.Register(
            TextTwoPropertyName,
            typeof(string),
            typeof(DoubleComboTextBox),
            new UIPropertyMetadata(string.Empty));
    }
}
